//package com.test;
//
//import Service.Implement.useServiceImplement;
//import com.alibaba.fastjson.JSON;
//import pojo.room;
//
//import javax.servlet.*;
//import javax.servlet.http.*;
//import javax.servlet.annotation.*;
//import java.io.IOException;
//import java.io.PrintWriter;
//import java.util.List;
////仅用于测试tomcat
//@WebServlet(name = "testServlet", value = "/test")
//public class testServlet extends HttpServlet {
//    @Override
//    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//        // 设置响应类型:
//        response.setContentType("text/html");
//        // 获取参数：
////        String room_id = request.getParameter("room_id");
//        // 调用接口获取结果：
////        useServiceImplement usi = new useServiceImplement();
////        List<room> rooms = usi.queryRoomByCategory(room_id);
////        String results = JSON.toJSONString(rooms);
//        // 获取输出流:
//        PrintWriter pw = response.getWriter();
//        // 写入响应:
//        pw.println("<h1>hello</h1>");
//        // flush强制输出:
//        pw.flush();
//    }
//
//    @Override
//    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//
//    }
//}
